import {defineStore} from 'pinia'
import {changeLocale} from '/@/plugins/i18n'
import {getConfig, setConfig} from '/@/config'

const config = getConfig()
type AppStateType = {
  LOADING?: Boolean
}
export const useDayStore = defineStore({
  id: 't-day',
  state: (): AppStateType => {
    return {
      LOADING: false
    }
  },
  actions: {
    showLoading() {
      console.log('pinia1111')
      this.LOADING = true
    },
    hideLoading() {
      console.log('pinia2222')
      this.LOADING = false
    }
  }
})
